package com.webservice.service1.status;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;

@Path("/v1/status")
public class V1_status {

	@GET
	@Produces(MediaType.TEXT_HTML)
	public String returnTitle(){
		return "<h1>Java Web Service</h1>";
	}
	
	@Path("/version")
	@GET
	@Produces(MediaType.TEXT_HTML)
	public String returnVersion(){
		return "<h1>Hello Sumit ;-)</h1>";
	}
	
	@Path("/{param}/{pp}")
	@GET
	@Produces(MediaType.TEXT_HTML)
	public String receiveParam(@PathParam("param") String param,@PathParam("pp") int pp){
		return "<h1>You sent</h1>"+param+pp;
	}
	@Path("/param")
	@GET
	@Produces(MediaType.TEXT_HTML)
	public String receiveParam(@QueryParam("param") String param){
		return "<h1>You sent</h1>"+param;
	}
}
